package com.woniu.apartment.domain;

import java.io.Serializable;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 评论对象 tb_comments
 *
 * @author yy
 * @date 2023-04-03
 */
@ApiModel(value = "Comments", description = "评论")
public class Comments implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 评论表主键 */
    @ApiModelProperty("评论表主键")
    private Long id;

    /** 用户主键 */
    @Excel(name = "用户主键")
    @ApiModelProperty("用户主键")
    private Long customerId;

    @Excel(name = "公寓主键")
    @ApiModelProperty("公寓主键")
    private Long apartId;


    /** 用户名称 */
    @Excel(name = "用户名称")
    @ApiModelProperty("用户名称")
    private String customerName;

    /** 设施评分 */
    @Excel(name = "设施评分")
    @ApiModelProperty("设施评分")
    private Long facilityScore;

    /** 交通评分 */
    @Excel(name = "交通评分")
    @ApiModelProperty("交通评分")
    private Long trafficScore;

    /** 安全评分 */
    @Excel(name = "安全评分")
    @ApiModelProperty("安全评分")
    private Long securityScore;

    /** 服务评分 */
    @Excel(name = "服务评分")
    @ApiModelProperty("服务评分")
    private Long serviceScore;

    /** 性价比评分 */
    @Excel(name = "性价比评分")
    @ApiModelProperty("性价比评分")
    private Long costPerScore;

    /** 综合评分（其他5项平均分） */
    @Excel(name = "综合评分", readConverterExp = "其=他5项平均分")
    @ApiModelProperty("综合评分")
    private Long score;

    /** 用户评论内容 */
    @Excel(name = "用户评论内容")
    @ApiModelProperty("用户评论内容")
    private String comments;

    /** 评论时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "评论时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("评论时间")
    private Date commentDatetime;


    public Comments() {
    }

    public Comments(long serialVersionUID, Long id, Long customerId, Long apartId, String customerName, Long facilityScore, Long trafficScore, Long securityScore, Long serviceScore, Long costPerScore, Long score, String comments, Date commentDatetime) {
        this.id = id;
        this.customerId = customerId;
        this.apartId = apartId;
        this.customerName = customerName;
        this.facilityScore = facilityScore;
        this.trafficScore = trafficScore;
        this.securityScore = securityScore;
        this.serviceScore = serviceScore;
        this.costPerScore = costPerScore;
        this.score = score;
        this.comments = comments;
        this.commentDatetime = commentDatetime;
    }

    /**
     * 获取
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取
     * @return customerId
     */
    public Long getCustomerId() {
        return customerId;
    }

    /**
     * 设置
     * @param customerId
     */
    public void setCustomerId(Long customerId) {
        this.customerId = customerId;
    }

    /**
     * 获取
     * @return apartId
     */
    public Long getApartId() {
        return apartId;
    }

    /**
     * 设置
     * @param apartId
     */
    public void setApartId(Long apartId) {
        this.apartId = apartId;
    }

    /**
     * 获取
     * @return customerName
     */
    public String getCustomerName() {
        return customerName;
    }

    /**
     * 设置
     * @param customerName
     */
    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    /**
     * 获取
     * @return facilityScore
     */
    public Long getFacilityScore() {
        return facilityScore;
    }

    /**
     * 设置
     * @param facilityScore
     */
    public void setFacilityScore(Long facilityScore) {
        this.facilityScore = facilityScore;
    }

    /**
     * 获取
     * @return trafficScore
     */
    public Long getTrafficScore() {
        return trafficScore;
    }

    /**
     * 设置
     * @param trafficScore
     */
    public void setTrafficScore(Long trafficScore) {
        this.trafficScore = trafficScore;
    }

    /**
     * 获取
     * @return securityScore
     */
    public Long getSecurityScore() {
        return securityScore;
    }

    /**
     * 设置
     * @param securityScore
     */
    public void setSecurityScore(Long securityScore) {
        this.securityScore = securityScore;
    }

    /**
     * 获取
     * @return serviceScore
     */
    public Long getServiceScore() {
        return serviceScore;
    }

    /**
     * 设置
     * @param serviceScore
     */
    public void setServiceScore(Long serviceScore) {
        this.serviceScore = serviceScore;
    }

    /**
     * 获取
     * @return costPerScore
     */
    public Long getCostPerScore() {
        return costPerScore;
    }

    /**
     * 设置
     * @param costPerScore
     */
    public void setCostPerScore(Long costPerScore) {
        this.costPerScore = costPerScore;
    }

    /**
     * 获取
     * @return score
     */
    public Long getScore() {
        return score;
    }

    /**
     * 设置
     * @param score
     */
    public void setScore(Long score) {
        this.score = score;
    }

    /**
     * 获取
     * @return comments
     */
    public String getComments() {
        return comments;
    }

    /**
     * 设置
     * @param comments
     */
    public void setComments(String comments) {
        this.comments = comments;
    }

    /**
     * 获取
     * @return commentDatetime
     */
    public Date getCommentDatetime() {
        return commentDatetime;
    }

    /**
     * 设置
     * @param commentDatetime
     */
    public void setCommentDatetime(Date commentDatetime) {
        this.commentDatetime = commentDatetime;
    }

    public String toString() {
        return " id = " + id + ", customerId = " + customerId + ", apartId = " + apartId + ", customerName = " + customerName + ", facilityScore = " + facilityScore + ", trafficScore = " + trafficScore + ", securityScore = " + securityScore + ", serviceScore = " + serviceScore + ", costPerScore = " + costPerScore + ", score = " + score + ", comments = " + comments + ", commentDatetime = " + commentDatetime + "}";
    }
}
